import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import FastClick from 'fastclick'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import qs from 'qs';
import {post,fetch,postsso} from './config/http'
// import './config/vue-boostrap-table'
import BootstrapTable from './components/BootstrapTable.vue';
// import VueBootstrap4Table from 'vue-bootstrap4-table'
import Moment from 'moment'
const ECharts = () => import('vue-echarts/components/ECharts');

Vue.config.productionTip = false
Vue.prototype.$post=post;
Vue.prototype.$postsso=postsso;
Vue.prototype.$fetch=fetch;
Vue.prototype.$http=axios;
Vue.prototype.$qs=qs;
Vue.prototype.moment = Moment;
Vue.config.devtools = true;
FastClick.attach(document.body);
Vue.use(ElementUI)
Vue.component('chart', ECharts)
// Vue.use(VueBootstrap4Table)
Vue.component('BootstrapTable', BootstrapTable)
// Vue.component('vue-bootstrap4-table', VueBootstrap4Table)


//不同环境的接口地址
Vue.prototype.PIC_URL = process.env.VUE_APP_PIC_URL || 'http://intest.towatt.cn:16023'
Vue.prototype.EWM = process.env.VUE_APP_EWM || 'https://intest.towatt.cn:20004/activity'

// Vue.prototype.PIC_URL = process.env.VUE_APP_PIC_URL || 'http://static.towatt.cn:9106'
// Vue.prototype.EWM = process.env.VUE_APP_EWM || 'http://test1app.towatt.cn:9101'
export default new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
